/**
 * 示例如何渲染Nunjuckers模板
 *
 * @author guojunlong@tuniu.com (Allen Guo)
 * @copyright Copyright &copy; 2006-2016 Tuniu.com
 */
'use strict';

module.exports = class {
    layoutNoArgs() {
        this.res.autoRender();
    }

    hello() {
        this.res.autoRender({
            content: 'Nunjucks - 布局在njk里声明'
        });
    }

    anotherView() {
        this.res.autoRender('kickstart/njkFlat/another.njk', {
            content: 'Nunjucks - 另外一个njk模板文件',
        });
    }
}